package com.mht2017.common.mongo.dto;

import java.util.List;

/**
 * mongodb中的对象在java内存中的bean
 *
 * @author yutong.xiao
 */
public class SearchConfigDto {

	private int version;
	private String configName;
	private String index;
	private String type;
	private String settings;
	private String mapping;

	private List<SearchConfigTableDto> tables;

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getConfigName() {
		return configName;
	}

	public void setConfigName(String configName) {
		this.configName = configName;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSettings() {
		return settings;
	}

	public void setSettings(String settings) {
		this.settings = settings;
	}

	public String getMapping() {
		return mapping;
	}

	public void setMapping(String mapping) {
		this.mapping = mapping;
	}

	public List<SearchConfigTableDto> getTables() {
		return tables;
	}

	public void setTables(List<SearchConfigTableDto> tables) {
		this.tables = tables;
	}

	@Override
	public String toString() {
		return "SearchConfigDto [version=" + version + ", configName=" + configName + ", index=" + index + ", type=" + type + ", settings=" + settings + ", mapping=" + mapping + ", tables=" + tables + "]";
	}

}
